package com.imooc.repository;

import com.imooc.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * OrderMaster Repository
 * @author liuhuan
 * @date 2018/7/5 15:58
 * @description
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {

    /**
     * find by buyer openid
     * @param buyerOpenId
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenId(String buyerOpenId, Pageable pageable);


}
